#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>

int main()
{
	int a = 0;
	int b = 0;
	int i = 0;
	int count = 0;
	scanf("%d %d", &a, &b);
	for(i=0;i<32;i++)
	{
		if ((a & 1) != (b & 1))
		{
			count++;
		}
		a=a >> 1;
		b=b >> 1;
	}
	printf("%d", count);
	return 0;
}